package com.itheima.demo1;

public class Xiangjiaxunhuan {
    public static  void  main(String[] args){
        int sum = 0;
        for(int x = 1;x <= 5;x++){
            sum = sum + x;
        }
        System.out.println("1-5的相加和为"+sum);
    }
}
